package com.lbt.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lbt.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lbt.eduservice.entity.front.CourseQueryVo;
import com.lbt.eduservice.entity.front.CourseWebVo;
import com.lbt.eduservice.entity.vo.CourseInfoVo;
import com.lbt.eduservice.entity.vo.CoursePublishVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-06-02
 */
public interface EduCourseService extends IService<EduCourse> {

    String  save(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfoVo(CourseInfoVo courseInfoVo);

   // CoursePublishVo publishCourseInfo(String id);
    //getPublishCourseInfo
      CoursePublishVo     getPublishCourseInfo(String id);

    void removeCourse(String courseId);

    Map<String, Object> selectPageWeb(Page<EduCourse> coursePage, CourseQueryVo courseQuery);

    CourseWebVo getBaseCourse(String courseId);
}
